﻿using System;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;
using Volo.Abp.EventBus.Distributed;

namespace Ordering.Orders
{
    public class OrderCreatedHandler : IDistributedEventHandler<OrderCreatedEto>, ITransientDependency
    {
        public Task HandleEventAsync(OrderCreatedEto eventData)
        {
            Console.WriteLine($"收到集成事件{eventData.Id}_{eventData.Name}_{DateTime.Now}");
            return Task.CompletedTask;
        }
    }
}
